$(document).ready(function(){
    if ($.cookie('nalog_trenutna_galerija')!=null) {
        //click on current gallery
        var currentGalleryTab = $.cookie('nalog_trenutna_galerija');
        $('#' + currentGalleryTab).click();
    }

    $('.file_btn').click(function() {
        var inputFile = $(this).parent().find('.inp_file').val();
        if (inputFile=="") {
            alert("Izaberite sliku.");
            return false;
        }
    });
});